'use strict';
exports.main = async (event, context) => {
  try {
    const db = uniCloud.database();
    
    // 简单查询，不做任何复杂操作
    const result = await db.collection('tenants').limit(5).get();
    
    return {
      code: 0,
      message: '成功',
      data: result.data
    };
  } catch (error) {
    return {
      code: 500,
      message: '错误: ' + error.message
    };
  }
}; 